/*
 * @Author: your name
 * @Date: 2022-01-29 21:45:58
 * @LastEditTime: 2022-02-03 21:43:55
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \vue3-vite-tsx\src\components\test.tsx
 */
import { defineComponent, ref } from 'vue'
// import CDialogs from './dialog'
const Test = defineComponent({
  setup(props, ctx) {
    let show = ref(false)
    const handleClick = () => {
      show.value = true
    }
    const handleClose = () => {
      show.value = false
    }
    //
    return () => (
      <>
        <dialogs v-model:show={show.value} v-slots={{ footer: () => <div>footer</div> }}>
          <div>内容</div>
        </dialogs>
        <div onClick={handleClick}>test.tsx</div>
      </>
    )
  }
})
export default Test
